package com.sikaryofficial.backend.domain.mapping;

import com.sikaryofficial.backend.domain.dto.req.StoreFollowReq;
import com.sikaryofficial.backend.domain.dto.resp.StoreFollowDTO;
import com.sikaryofficial.backend.domain.entity.StoreFollow;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author : wuweihong
 * @desc : 店铺回访映射
 * @date : 2025-01-03
 */

@Mapper
public interface StoreFollowMapping {

	StoreFollowMapping INSTANCE = Mappers.getMapper(StoreFollowMapping.class);

	/**
	 * req映射entity
	 * @param req
	 * @return
	 */
	StoreFollow coverReqToEntity(StoreFollowReq req);

	List<StoreFollow> coverReqListToEntity(List<StoreFollowReq> reqs);

	StoreFollowDTO coverEntityToResp(StoreFollow storeFollow);

	List<StoreFollowDTO> coverListToResp(List<StoreFollow> storeFollows);

}
